/*
 * @ClassName screen_util_init.dart
 * @Description 屏幕设配初始化
 * @Author SuPeiSen
 * @Date 2020/7/14 9:39
 */

import 'package:flutter/cupertino.dart';
import 'package:flutter_screenutil/screenutil.dart';
import 'package:flutter_su/common/global_context.dart';
import 'package:flutter_su/config/app_config.dart';

class ScreenUtilInit {
  // 屏幕设配初始化
  static init(BuildContext context) {
    ScreenUtil.init(
        context,
        width: AppSetting.SCREEN_UTIL_WIDTH,
        height: AppSetting.SCREEN_UTIL_HEIGHT,
        allowFontScaling: false);
  }
}
